import {
  useSelector as useReduxSelector,
  TypedUseSelectorHook,
} from "react-redux";
import { RootState } from "./store";

// 借助原生的useSelector生产一个新的useSelector
export const useSelector: TypedUseSelectorHook<RootState> = useReduxSelector;
